package com.ssm.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 3;

    public int getStart() {
        return (currentPage - 1)*pageSize;
    }
}
